<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../common/commonInclude.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
<title><%=SYSTEM_NAME %></title>
<meta name="description" content="overview & stats" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<!-- basic styles -->
<link href="<%=basePath%>resource/assets/css/bootstrap.min.css"
	rel="stylesheet" />
<link
	href="<%=basePath%>resource/assets/css/bootstrap-responsive.min.css"
	rel="stylesheet" />

<link rel="stylesheet"
	href="<%=basePath%>resource/assets/css/font-awesome.min.css" />
<!--[if IE 7]>
		  <link rel="stylesheet" href="<%=basePath%>resource/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->


<!-- page specific plugin styles -->


<!-- ace styles -->
<link rel="stylesheet"
	href="<%=basePath%>resource/assets/css/ace.min.css" />
<link rel="stylesheet"
	href="<%=basePath%>resource/assets/css/ace-responsive.min.css" />
<link rel="stylesheet"
	href="<%=basePath%>resource/assets/css/ace-skins.min.css" />
<!--[if lt IE 9]>
		  <link rel="stylesheet" href="<%=basePath%>resource/assets/css/ace-ie.min.css" />
		<![endif]-->

</head>

<body>
	<%@ include file="nav.jsp"%>

	<div class="container-fluid" id="main-container">
		<%@ include file="sidebar.jsp"%>
		
		<div id="main-content" class="clearfix">
			<iframe id="contentFrame" name="contentFrame" src="main/content" style="overflow:visible;"
				scrolling="yes" frameborder="no" width="100%"></iframe>
		</div>
	</div>
	
	<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse"> <i
		class="icon-double-angle-up icon-only"></i>
	</a>
	
	<%@ include file="footer.jsp"%>
	<!-- basic scripts -->
	<script src="<%=basePath%>resource/jquery/jquery-1.9.1.min.js"></script>
	<script type="text/javascript">
		window.jQuery || document.write("<script src='<%=basePath%>resource/jquery/jquery-1.9.1.min.js'>\x3C/script>");
		</script>
	<script src="<%=basePath%>resource/jquery/jquery-migrate-1.2.1.min.js"></script>
	
	<script src="<%=basePath%>resource/assets/js/bootstrap.min.js"></script>

	<!-- page specific plugin scripts -->

	<!--[if lt IE 9]>
		<script type="text/javascript" src="<%=basePath%>resource/assets/js/excanvas.min.js"></script>
		<![endif]-->

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery-ui-1.10.2.custom.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.ui.touch-punch.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.slimscroll.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.easy-pie-chart.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.sparkline.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.flot.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.flot.pie.min.js"></script>

	<script type="text/javascript"
		src="<%=basePath%>resource/assets/js/jquery.flot.resize.min.js"></script>


	<!-- ace scripts -->
	<script src="<%=basePath%>resource/assets/js/ace-elements.min.js"></script>
	<script src="<%=basePath%>resource/assets/js/ace.min.js"></script>


	<!-- inline scripts related to this page -->

	<script type="text/javascript">
		
		var userinfo;
		$(document).ready(function(){
			var userinfo = JSON.parse('${it.userinfo}');
			$("#user_info").html("<small>"+"欢迎您<br>"+(userinfo.loginname?userinfo.loginname:"User")+"</small>");
			$("#cpwd").attr("url","user/chgpwd?str1="+userinfo.loginname);
			
			$("li a").click(function(){
				var url = $(this).attr("url");
				if (url && url!=""){
					var mark = "?";
					if (url.indexOf("?")!=-1)
						mark = "&";
					$("#contentFrame").attr("src", url+mark+"id="+userinfo.id);
				}
			});
		});
	</script>
</body>


</html>
